﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

namespace Synthesize.Common.Domain.Aggregation.Dtos
{

    /// <summary>
    /// 基础管理逻辑模块对应Redis设置
    /// </summary>
    public class RedisLogInfo
    {
        /// <summary>
        ///系统分类
        /// </summary>
        public static string SysGroupName = "SMS";

        /// <summary>
        /// 时间戳请求记录对应的ID
        /// </summary>
        public static string RedisApiTimestampId = $"{SysGroupName}:ApiTimestamp";

        //超时时间5秒
        public static double RedisApiTimestampTimeout = 2;

        /// <summary>
        ///接口访问黑名单和警告名单
        /// </summary>
        public static string RedisApiMonitorNameListHashId = $"{SysGroupName}:ApiMonitorNameList";


        #region 接口访问记录

        /// <summary>
        ///接口访问记录HASH对应的ID
        /// </summary>
        public static string RedisApiMonitorHashId = $"{SysGroupName}:ApiMonitor";

        /// <summary>
        ///接口访问次数HASH对应的ID
        /// </summary>
        public static string RedisApiMonitorNumberHashId = $"{SysGroupName}:ApiMonitorNumber";

        /// <summary>
        /// 接口访问记录失效时间
        /// </summary>
        public const int RedisApiMonitorTimeOut = 60;

        #endregion
    }
}
